<template>
  <div class="submit-bar">
    <div class="open">
      <img src="@/assets/icons/vip.png" alt />
      开通会员
    </div>

    <div class="action">
      ¥ {{ price.toFixed(2) }} 购买
    </div>
  </div>
</template>

<script>
export default {
  props: {
    price: {
      type: [Number, String],
      default: 0
    }
  }
}
</script>

<style lang="less" scoped>
.submit-bar {
  background-color: #ffffff;
  height: 60px;
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100vw;

  .open {
    display: flex;
    align-items: center;
    padding: 0 26px;
    font-size: 17px;
    color: #333333;
    font-weight: 500;

    img {
      width: 19px;
      margin-right: 9px;
    }
  }

  .action {
    flex: 1;
    background: linear-gradient(to right, #9D7551, #E7B281);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
  }
}
</style>